package com.linzt.candy.wxmp.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.linzt.candy.wxmp.domain.WxMpArticle;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
 * @Author linzt
 * @Date 2020/12/207:09 下午
 * @Description 微信公众号文章Mapper类
 * @Version 1.0
 */
public interface WxMpArticleMapper extends BaseMapper<WxMpArticle> {

    /**
     * 根据素材ID查找文章
     * @param materiaId 素材ID
     * @return
     */
    @Select("select * from tb_wx_mp_article where material_id=#{materiaId}")
    List<WxMpArticle> findByMaterialId(@Param("materiaId") String materiaId);

}
